﻿using System;
using System.Windows;
using WindowsPhoneEssentials.Tasks;

namespace SampleApplication
{
    public partial class MainPage
    {
        public MainPage()
        {
            InitializeComponent();
        }

        private void LoadingPivotDemo(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/LoadingPivot.xaml", UriKind.Relative));
        }

        private void EnhancedBrowserTask(object sender, RoutedEventArgs e)
        {
            new PhoneTaskManager().ShowWebsiteInApp(
                "http://wp7essentials.codeplex.com/",
                navigateCallback: (uri, navigationService) => navigationService.GoBack());
        }

        private void ShowSettings(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Settings.xaml", UriKind.Relative));
        }
    }
}